package crp.core.resource.app;

import crp.core.resource.domain.services.CourseResourceSearcher;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;

@ApplicationScoped
public class CourseResourceService {
    private final Instance<CourseResourceSearcher> searcher;

    @Inject
    public CourseResourceService(Instance<CourseResourceSearcher> searcher) {
        this.searcher = searcher;
    }

    public CourseResourceSearcher searcher() {
        return searcher.get();
    }
}
